"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
let students = [
    { id: 1, name: "xiaowang", classes: { id: 1, name: "web33" } },
    { id: 2, name: "xiaofei", classes: { id: 1, name: "web33" } }
];
//根据编号查询学生的班级，并返回
function find(id) {
    const stu = students.find(item => item.id == id);
    const classes = stu === null || stu === void 0 ? void 0 : stu.classes;
    return classes;
}
find(3);
